cos = math.cos
sin = math.sin

header = {
   name = "oval",
   size = {4096 * 18, 3072 * 18},
   lap = 3,
}

player = {
   startpoint = {15353, 13535},
   weight     = 500;
   bbox       = {-50, -50, 50, 50};
   accel      = 1500,
   decel      = 0.9,
   routine = 1;
   tailcolor  = {1.0, 1.0, 1.0, 1.0}
}

rivallist = {
   dare = {
      startpoint = {15353 + 150 * 3, 13535 + 150 * 0};
      weight     = 500;
      bbox       = {-50, -50, 50, 50};
      accel = 8000;
      decel = 800;
      routine = 1;
      tailcolor = {0.0, 0.5, 0.5, 0.7};
   };
}

targetlist = {};

do 
   local x = header.size[1] / 2
   local y = header.size[2] / 2
   local t = 0
   local r = 22000

   for index = 1, 3 do
      targetlist[index + 0] = {
         position = {x + r * cos(t), y + r * sin(t)}
      }
      t = t + 3.141579 / 180 * 360 / 3;
   end

   table.insert(targetlist, {position = {x, y}})

   table.insert(targetlist, {position = {x * 0.8, y * 0.8}})
end

boosters = {
   { position = {6144 * 3, 6144 * 7} },
   { position = {6144 * 7, 6144 * 3} },
   { position = {6144 * 7, 6144 * 7} },
   { position = {6144 * 3, 6144 * 3} },
};

do
for index = 1, 4 do
   local x = header.size[1] / 2
   local y = header.size[2] / 2
   local t = 0
   local r = 2000
   boosters[index + 4] = {
      position = {x + r * cos(t), y + r * sin(t)}
   }
   t = t + 3.141579 / 180 * 360 / 4;
end
end

jumpers = {
   { position = {6144 * 4, 6144 * 6}, direct = {1.0, 0.3} },
   { position = {6144 * 6, 6144 * 4}, direct = {1.0, 0.3} },
   { position = {6144 * 4, 6144 * 4}, direct = {1.0, 0.3} },
   { position = {6144 * 6, 6144 * 6}, direct = {1.0, 0.3} },
};

itemboxes = {
   { position = {6144 * 2, 6144 * 2} },
   { position = {6144 * 3.5, 6144 * 3.5} },
};

npc_rounders = {
   { 
      positions = {
         {500, 500},
         {500, 50000},
         {45000, 45000},
         {50000, 1000},
      };
      velocity  = 7500.0;
      rect      = {-1000, -3000, 1000, 3000};
   },
};

npc_buoys = {
   { position = {0, 0}; rect = {-500, -500, 500, 500};},
};
